package br.com.felix.clearcase;

import br.com.felix.clearcase.command.Checkin;
import br.com.felix.clearcase.command.Checkout;
import br.com.felix.clearcase.command.Undocheckout;
import br.com.felix.easyclearcase.EasyClearCaseFile;

/**
 * Factory class for clearcase commands. Not very useful. Bad design, needs to be refactored or eliminated.
 * */
public class ClearCaseCommand {

	
	
	public ClearCaseCommand(){
		
	}
	
	
	
	public static Checkout checkOut(EasyClearCaseFile file) throws ClearCaseException{
		return new Checkout(file);
	}
	
	
	
	public static Checkin checkIn(EasyClearCaseFile newVersionFile, EasyClearCaseFile repositoryFile, String comment) throws ClearCaseException{
		return new Checkin(newVersionFile, repositoryFile, comment);
	}
	

	
	public static Undocheckout undoCheckOut(EasyClearCaseFile file) throws ClearCaseException{
		return new Undocheckout(file);
	}
	
	
}
